package ln;

public class Main {

    public static void main(String[] args) {
        final BiscuitRepository biscuitRepository = new BiscuitRepository();
        for (int i = 0; i < 256; i++) {
            new Thread(new ProducerRunner(biscuitRepository, "生产者 %d 号".formatted(i))).start();
            new Thread(new ConsumerRunner(biscuitRepository, "消费者 %d 号".formatted(i))).start();
        }
    }
}
